﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="SaleAchievementSrhForm.aspx.cs" ValidateRequest="false" Inherits="SaleAchievementSrhForm"
    Title="员工业绩查询" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:Panel ID="PanelNavigate" runat="server" />
    &nbsp;
        <table width="90%">
            <tr>
                <td style="height: 87px">
                    <table border="0" class="table_border_line">
                        <tr>
                            <td align="left"  colspan="4">
                                <script language="javascript">
                        (new TitleBar('SearchBar', '员工业绩查询：')).showBar();
                                    </script>
                            </td>
                        </tr>                        
                    </table>
                    <table border="0" class="table_border_line" style="background:ffffff">
                        <tr>
                            <td style="width: 78px; height: 18px;">&nbsp;</td>
                            <td class="list_data_bg_left" style="width: 120px; white-space: nowrap; height: 18px;">销售人员编号</td>
                            <td align="left" style="height: 18px">
                                <table width="330">
                                    <tr>
                                        <td colspan="2">
                                            <asp:TextBox id="txtEmployeeId" runat = "server" CssClass = "default" Width = "120px"  MaxLength = 4/>
                                            <asp:Button ID="btnEmployeeId" runat="server" Text="职员检索" Width="66px" Visible="False" /></td>
                                    </tr>
                                </table>
                            </td>
                            <td align="right" style="height: 18px">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 78px; height: 18px;">&nbsp;</td>
                            <td class="list_data_bg_left" style="width: 120px; white-space: nowrap; height: 18px;">
                                销售日期</td>
                            <td align="left" style="height: 18px">
                                <table width="500">
                                    <tr>
                                        <td colspan="2">
                                            <asp:TextBox id="txtBeginDate" runat = "server" CssClass = "default" Width = "120px" MaxLength="10" />                                        
                                            ~
                                            <asp:TextBox id="txtEndDate" runat = "server" CssClass = "default" Width = "120px" MaxLength="10" />
                                            （格式：yyyy/MM/dd）                                                                                    
                                        </td> 
                                    </tr>
                                </table>
                            </td>
                            <td align="right" style="height: 18px">&nbsp;</td>
                        </tr>                                                                                                                   
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    &nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="检 索" Width="68px"
                        OnClick="btnSearch_Click" CssClass="button1" />&nbsp;&nbsp;
                        <asp:Button ID="btnBack" runat="server" Text="返 回" Width="68px" OnClick="btnBack_Click" CssClass="button1" /></td>
            </tr>
        </table>
    <br />
        <table id="tblResult" width="90%" runat="server" visible=false>
            <tr>
                <td align="left" >
                <script language="javascript">
                        (new TitleBar('SearchBar1', '员工业绩查询结果：')).showBar();
                                    </script>
                </td>
            </tr>           
            <tr>
                <td>
                    <center>
                        <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" CssClass="GridView_table"
                            DataKeyNames="EmployeeId" OnRowCommand="viewSrhRst_RowCommand" OnPageIndexChanging="viewSrhRst_PageIndexChanging" OnRowDataBound="viewSrhRst_RowDataBound" >
                            <Columns>
                                <asp:BoundField HeaderText="员工编号" DataField="EmployeeId" Visible="False">
                                    <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                    <ItemStyle CssClass="GridView_item_center" />
                                </asp:BoundField>          
                                <asp:BoundField HeaderText="员工姓名" DataField="EmployeeName">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="12%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>                                                  
                                <asp:BoundField HeaderText="回访次数合计" DataField="VisitingCount" >
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="12%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>                                                                                         
                                <asp:BoundField HeaderText="签约数量" DataField="ContractCount">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="17%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>                                                
                                <asp:BoundField HeaderText="付费数量" DataField="PaymentCount">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="合同总金额" DataField="ContractAmount"  DataFormatString="{0:N}" HtmlEncode="False">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>      
                                <asp:BoundField HeaderText="缴费总金额" DataField="PaymentAmount"  DataFormatString="{0:N}" HtmlEncode="False">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>                                      
                                <asp:ButtonField ButtonType="Image" CommandName="Details" HeaderText="详细"
                                    ImageUrl="~/images/info.gif">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                                </asp:ButtonField>                                                                                          
                            </Columns>
                            <PagerStyle CssClass="list_data_bg" HorizontalAlign="Right" />                            
                        </asp:GridView>
                    </center>          
                    
                 </td>
            </tr>            
        </table>
    <br />
</asp:Content>
